package com.yonyou.brigade.third_parties.third.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author jiangzhf@yonyou.com
 * @since 2018-08-16
 */
@TableName("bri_group_member")
public class BriGroupMember extends Model<BriGroupMember> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;
    /**
     * 用户编号
     */
    private String pcode;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 部门
     */
    private String depart;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 组ID
     */
    @TableField("group_id")
    private Integer groupId;
    /**
     * 用户名称
     */
    @TableField("user_name")
    private String userName;
    /**
     * 备注
     */
    private String note;

    @TableField("org_pk")
    private String orgPk;

    private String tenant;
    private Date ts;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPcode() {
        return pcode;
    }

    public void setPcode(String pcode) {
        this.pcode = pcode;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getDepart() {
        return depart;
    }

    public void setDepart(String depart) {
        this.depart = depart;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getOrgPk() {
        return orgPk;
    }

    public void setOrgPk(String orgPk) {
        this.orgPk = orgPk;
    }

    public String getTenant() {
        return tenant;
    }

    public void setTenant(String tenant) {
        this.tenant = tenant;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String PCODE = "pcode";

    public static final String EMAIL = "email";

    public static final String DEPART = "depart";

    public static final String PHONE = "phone";

    public static final String GROUP_ID = "group_id";

    public static final String USER_NAME = "user_name";

    public static final String NOTE = "note";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BriGroupMember{" +
        "id=" + id +
        ", userId=" + userId +
        ", pcode=" + pcode +
        ", email=" + email +
        ", depart=" + depart +
        ", phone=" + phone +
        ", groupId=" + groupId +
        ", userName=" + userName +
        ", note=" + note +
        ", ts=" + ts +
        "}";
    }
}
